
if gg.toast2 == nil then
	-- 判断该函数是否存在
	toast = gg.toast -- 调用普通GG
else
	toast = gg.toast2 -- 调用MYGG
end

if gg.getSignatures ( ) ~= "-1329433876" then
	gg.alert ( "请使用专属GG运行！" )
	print ( "请使用专属GG运行！" )
	os.exit ( )
end


toast
[[如果脚本长时间打不开
等待恢复
QQ新频道号
dz7516rs94]]
ZhuYeNameTable = {
	"选择应用进程" ,
	"地球末日_刷物品" ,
	"冷酷灵魂_刷物品" ,
	"赛季解锁与重置" ,
	"地球末日刷礼包" ,
	"冷酷灵魂改宠物技能(新)" ,
	"墨雨转码工具",
    "加入我们",
	"模拟器搜索值慢点我试试" ,
	"退出脚本" ,
}
-- 对应云链或函数名称
ZhuYeLinkTable = {
	"setProcessX" ,

	"https://icdn.binmt.cc/2411/67395120e5537.png" ,
	-- 地球末日

	"https://icdn.binmt.cc/2411/6726da4e3d651.png" , --
	-- 冷酷灵魂

	"https://pan.suyanw.cn/down.php/0081996082b574be791bf7f90ebc28ba.lua" ,
	-- 赛季解锁
	"https://icdn.binmt.cc/2406/66754a645a7f4.png" ,
	-- 地球末日刷礼包

     --冷酷灵魂改技能
	"https://icdn.binmt.cc/2407/6697ca00f1c07.png" ,
	--转码
	"https://icdn.binmt.cc/2407/6697ca035ca10.png" ,
	
	
	
	
	"jiru" ,
	"momi" ,
	"Exit" ,
}

PlayMain = function ( Str , nameTable , linkTable )

	local loadScript = function ( link )
		local Script = gg.makeRequest ( link ).content
		if not Script then
			gg.alert ( "无网络或脚本数据丢失!" )
			return os.exit ( )
		else
			Script , error = load ( Script )
			if not Script then
				gg.alert ( "脚本数据已损坏，请重试!"..error )
				return os.exit ( )
			else
				return Script ( )
			end
		end
	end

	local PlayFunUI = function ( FunName , FunPlay , String , linkTable )
		local Qing = gg.choice (
			FunName , nil , String )
		if Qing then
			local begin = linkTable [ Qing ]
			if begin and begin ~= "未开放" then
				if begin : match ( "http" ) then
					return loadScript ( begin )
				else
					_G [ begin ] ( )
				end
			else
				return gg.alert ( "未开放或无此功能函数:"..FunName [ Qing ] )
			end
		else
			return false
		end
	end

	if not nameTable or not linkTable then
		Str = ZhuYeStr
		menu = "PlayMain"
		linkTable = ZhuYeLinkTable
		nameTable = ZhuYeNameTable
	end
	local Str = "作者暗恋脚本更新时间"..os.date ( "%Y-%m-%d" )..""
	return PlayFunUI ( nameTable , linkTable , Str , linkTable )
end

function setProcessX ( )
	menu = "setProcessX"
	gg.setProcessX ( )
	return PlayMain ( )
end

function momi ( )
	gg.setConfig ( 2131427465 , 1 )
	gg.alert ( "设置成功" )
end

function jiru ( )
	gg.goURL ( "https://share.weiyun.com/C69DOCv3" )
end

function Exit ( )
	menu = "Exit"
	print ( "From.÷暗恋\nQQ2954831198" )
	return os.exit ( )
end

menu = "PlayMain"
while true do
	-- 循环调用参数
	if gg.isVisible ( true )
	then
		gg.setVisible ( false )
		_G [ menu ] ( )
	end
end
